package cn.spark.study.sql

import org.apache.spark.SparkContext
import org.apache.spark.SparkConf

class ContextUtil {
  
  def getContext(className:String):SparkContext = {
    val conf = new SparkConf()
        .setAppName(className)
//        .setMaster("local")
    return new SparkContext(conf)
  }
  
   def getContextL(className:String):SparkContext = {
    val conf = new SparkConf()
        .setAppName(className)
        .setMaster("local")
    return new SparkContext(conf)
  }
  
}